import 'package:flutter/material.dart';

class ArticleTag extends StatelessWidget {
  final Color color;
  final String text;

  ArticleTag(this.text, {this.color});

  @override
  Widget build(BuildContext context) {
    var boxColor = color ?? Theme.of(context).accentColor;
    return Container(
      decoration: BoxDecoration(border: Border.all(color: boxColor)),
      child: Text(
        text,
        style: TextStyle(
          color: boxColor,
          fontSize: 10,
          height: 1,
        ),
      ),
    );
  }
}
